package hr.eon.client.model;

import hr.eon.core.Constants.Status;
import hr.eon.core.EonMessage;
import java.util.LinkedList;
import java.util.Queue;

/**
 * Truncated alias class for EonServer User domain model.
 * It contains user-related data which is essential for EonClient application.
 * 
 * @author mjovanovic
 * @since 0.0.1
 */
public class User {

    private String name;
    private String sessionToken;
    private Status loginStatus;
    private Queue<EonMessage> queue;

    public User() {
        queue = new LinkedList<>();
    }

    public Status getLoginStatus() {
        return loginStatus;
    }

    public void setLoginStatus( Status loginStatus ) {
        this.loginStatus = loginStatus;
    }

    public String getName() {
        return name;
    }

    public void setName( String name ) {
        this.name = name;
    }

    public String getSessionToken() {
        return sessionToken;
    }

    public void setSessionToken( String sesionToken ) {
        this.sessionToken = sesionToken;
    }

    public Queue<EonMessage> getQueue() {
        return queue;
    }

}
